package com.example.kotlin.basis

/**
 * Created by xiao_tan on 17/7/23.
 * null
 *
 */

fun heat(str:String?):String{//参数类型后面加上？表示参数可以为空
    return "热" + str
}



fun main(args:Array<String>){

    println(com.example.kotlin.basis.heat("水"))
    println(com.example.kotlin.basis.heat("狗"))
    println(com.example.kotlin.basis.heat("油"))

    println(com.example.kotlin.basis.heat(null))
}

